//
//  VCOf2ndTabBarItem.m
//  UIHomeWork_07
//
//  Created by tusm on 16/7/23.
//  Copyright © 2016年 tusm. All rights reserved.
//

#import "VCOf2ndTabBarItem.h"
#import "PresentViewController.h"

@interface VCOf2ndTabBarItem ()

@end

@implementation VCOf2ndTabBarItem

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
}
- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event{
    
    PresentViewController *present = [[PresentViewController alloc] init];
    //模态动画效果
    present.modalTransitionStyle = UIModalTransitionStylePartialCurl;
    //        UIModalTransitionStyleCoverVertical 默认效果,从上往下
    //    UIModalTransitionStyleFlipHorizontal ,左右翻页
    //    UIModalTransitionStyleCrossDissolve, 渐变效果
    //    UIModalTransitionStylePartialCurl,翻书效果
    //模态,一个视图控制器
    [self presentViewController:present animated:YES completion:^{
        
    }];
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
